package com.xinchuang.entity.targetSystem.damage;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 数据字典表
 * </p>
 *
 * @author baomidou
 * @since 2024-04-26
 */
@Data
@TableName("t_dictionary")
@ApiModel(value = "DictionaryTable对象", description = "数据字典表")
public class DictionaryTable implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty("标签")
    @TableField(value = "label" )
    private String label;

    @ApiModelProperty("值")
    @TableField(value = "value" )
    private String value;

    @ApiModelProperty("类型")
    @TableField(value = "type" )
    private String type;

    @ApiModelProperty("是否为默认模板（1：是；0：否）")
    @TableField(value = "is_default" )
    private Boolean isDefault;

    @ApiModelProperty("描述")
    @TableField(value = "description" )
    private String description;

    @ApiModelProperty("创建人")
    @TableField(value = "create_by" )
    private String createBy;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("状态(0:正常,1：删除)")
    @TableField(value = "data_status" )
    private int dataStatus;

}
